﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace InsertCarInVehicleDetails
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Stats.AuxMethods.addCarDetailsToDb((textBox1.Text+textBox2.Text), float.Parse(textBox3.Text), float.Parse(textBox4.Text));
            textBox1.Clear();
            textBox2.Clear();
            textBox3.Clear();
            textBox4.Clear();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Stats.AuxMethods.addCarDetailsToDb((textBox5.Text + textBox6.Text), float.Parse(textBox7.Text), float.Parse(textBox8.Text));
            textBox5.Clear();
            textBox6.Clear();
            textBox7.Clear();
            textBox8.Clear();
            
            
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Stats.AuxMethods.addCarDetailsToDb((textBox1.Text + textBox2.Text), float.Parse(textBox3.Text), float.Parse(textBox4.Text));
            textBox1.Clear();
            textBox2.Clear();
            textBox3.Clear();
            textBox4.Clear();
            Stats.AuxMethods.addCarDetailsToDb((textBox5.Text + textBox6.Text), float.Parse(textBox7.Text), float.Parse(textBox8.Text));
            textBox5.Clear();
            textBox6.Clear();
            textBox7.Clear();
            textBox8.Clear();
        }

        

       

       

       

        
    }
}
